package com.qf.fallback;

import com.qf.feign.GoodsFeign;
import com.qf.pojo.Goods;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @version v1.0.0
 * @Description:
 * @author: 姜红凯
 * @date: 2022.03.16
 * @since 1.0
 */
@Component
@RequestMapping("/fallback")
public class GoodsFallback implements GoodsFeign {
    @Override
    public String query(@PathVariable Integer id) {
        return "服务降级了";
    }

    @Override
    public String findById(Integer id) {
        return null;
    }

    @Override
    public String findDetails(Integer id) {
        return null;
    }

    @Override
    public String save(Goods goods) {
        return null;
    }
}
